//
//  CommonWKWebView.swift
//  FarmShare
//
//  Created by lixingjian on 2018/1/20.
//  Copyright © 2018年 aykj. All rights reserved.
//

import Foundation

class CommonWKWebView: UIViewController{
    
    var url:NSString?
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        let wkWebView = UIWebView()
        
        //设置位置和大小
        wkWebView.frame = self.view.frame;
        
        //添加
        self.view.addSubview(wkWebView)
        
        wkWebView.loadRequest(NSURLRequest(url:NSURL.init(string:self.url as! String)! as URL) as URLRequest)
        
    }
    
    
}
